package com.itheima;

import com.itheima.Config.SpringConfig;
import com.itheima.Service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookService bookService = ctx.getBean(BookService.class);
        Boolean flag = bookService.registerBook("http:///","root");
        System.out.println(flag);
    }
}